Skip to content

Conversation

@lwshang
Copy link
Contributor

@lwshang lwshang commented Jan 28, 2026

Description

Remove basic_expiry test - Testing zero-expiry timeouts with call_and_wait() is inherently timing-sensitive and unreliable in CI environments

@lwshang lwshang marked this pull request as ready for review January 28, 2026 21:53
@lwshang lwshang requested a review from a team as a code owner January 28, 2026 21:53
@lwshang lwshang marked this pull request as draft January 28, 2026 22:02
Replace fixed sleep durations with retry loops that actively poll for expected routing state. This eliminates timing-related flakiness in CI environments where task scheduling is less predictable.

Changes:
- Add wait_for_routing_to_domains helper that polls until expected domains are available
- Update test to use retry loops with timeouts instead of fixed sleeps
- Remove timing assumptions that failed in CI due to scheduler variance

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@lwshang lwshang changed the title test: remove flaky basic_expiry integration test test: address flaky tests in CI Jan 30, 2026
lwshang and others added 2 commits January 29, 2026 19:15
Increase sample sizes and timeouts to account for CI environment variability:
- Use 10 samples for single domain, 30 for multiple (matching other tests)
- Calculate timeouts based on snapshot_update_duration (fetch + 2*check intervals)
- Increase poll interval to 100ms to reduce overhead

These changes align with the timing patterns used in other routing tests and provide sufficient margin for CI scheduler variance.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Revert "test: fix flaky test_route_with_one_healthy_and_one_unhealthy_seed"

These commits attempted to fix the flaky test with retry logic, but the test continues to fail in CI. Reverting to consider alternative approaches.
@lwshang lwshang changed the title test: address flaky tests in CI test: remove flaky basic_expiry integration test Jan 30, 2026
@lwshang lwshang marked this pull request as ready for review January 30, 2026 00:49
@lwshang lwshang merged commit f0a8bf2 into main Jan 30, 2026
18 checks passed
@lwshang lwshang deleted the lwshang/remove_flacky_test branch January 30, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants